import hot from 'typescript-hot/src/watch';
import express from 'express';
import r from './controller/controller';

const app = express();
const server = app.listen(3000, () => console.log('Listening on port 3000'));
app.use("/app", r);

let h = hot.getInstance(()=>server.close(), "/src");
h.reloadMode = (modeFile)=>{ return true;}

